import requests
import json

class ValidateEmail:
    def __init__(self):
        self.api_url = 'https://disify.com/api/email/'

    def get_result(self, email):
        response = requests.get(self.api_url + email)
        return json.loads(response.text)  # 解析JSON字符串为字典


if __name__ == '__main__':
    while True:
        email = input("请输入要检测的邮箱地址：")
        if email == "":
            break
        api = ValidateEmail()
        result = api.get_result(email)
        print(result)
